﻿using System.Web.Mvc;
using System.Web.Routing;

namespace YawetagDemo.WebUI.Startup
{
    internal class RouteConfig
    {
        public static void RegisterRoutes()
        {
            RouteCollection routes = RouteTable.Routes;

            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute("home", "home", new { controller = "core", action = "home" });

            routes.MapRoute("do-work", "do-work", new { controller = "core", action = "do-work" });
            routes.MapRoute("do-basic-retrieval", "do-basic-retrieval", new { controller = "core", action = "do-basic-retrieval" });
            routes.MapRoute("do-callback-operations", "do-callback-operations", new { controller = "core", action = "do-callback-operations" });
            routes.MapRoute("do-complex-retrieval", "do-complex-retrieval", new { controller = "core", action = "do-complex-retrieval" });
            routes.MapRoute("do-crud-operations", "do-crud-operations", new { controller = "core", action = "do-crud-operations" });

            routes.MapRoute("default", "{controller}/{action}", new { controller = "core", action = "home" });
        }
    }
}
